import request from "@/utils/request";

// 查询项目产值利润报列表
export function listProjectProfitReport(query) {
  return request({
    url: "/production/projectProfitReport/list",
    method: "get",
    params: query,
  });
}

// 查询项目产值利润报所有列表
export function listAllProjectProfitReport(query) {
  return request({
    url: "/production/projectProfitReport/listAll",
    method: "get",
    params: query,
  });
}

// 查询项目产值利润报详细
export function getProjectProfitReport(id) {
  return request({
    url: "/production/projectProfitReport/getInfo/" + id,
    method: "get",
  });
}

// 新增项目产值利润报
// export function addProjectProfitReport(data) {
//   return request({
//     url: '/production/projectProfitReport/add',
//     method: 'post',
//     data: data
//   })
// }
// production / projectProfitReport / addByExcel;

// 新增项目产值利润报
export function addProjectProfitReport(data) {
  return request({
    url: "/production/projectProfitReport/addByExcel",
    method: "post",
    data: data,
  });
}
// 修改项目产值利润报
export function updateProjectProfitReport(data) {
  return request({
    url: "/production/projectProfitReport/edit",
    method: "post",
    data: data,
  });
}

// 删除项目产值利润报
export function delProjectProfitReport(id) {
  return request({
    url: "/production/projectProfitReport/remove/" + id,
    method: "get",
  });
}
